<?php
if ( function_exists('register_sidebar') )
register_sidebars(2);
function widget_mytheme_search() {
?>
<li>
<h2>Search</h2>
<form class="fix" method="get" id="searchbar" action="<?php bloginfo('home'); ?>/">
<div class="fix"><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
<input type="submit" id="barsubmit" value="Go" />
</div>
</form>
</li>
<?php
}
if ( function_exists('register_sidebar_widget') )
    register_sidebar_widget(__('Search'), 'widget_mytheme_search');